Skip to content

Conversation

@DragonSA
Copy link
Contributor

Description

Attributes attached to the return value of a class method (e.g. [<return: NotNull>]) were instead being attached to the method itself. This did not happen for functions (let bind). I refactored the logic out of TcNormalizedBinding (used by TcLetBinding and used that in AnalyzeAndMakeAndPublishRecursiveValue.

Fixes #19020

Checklist

  • Test cases added
  • Performance benchmarks added in case of performance changes
  • Release notes entry updated:

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.0.md

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please minimise the diff. So it is easier to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

[<return: X>] not respected on class members

2 participants